package com.wyc.serviceDriverUser.service;

import com.wyc.internalCommon.response.DriverOrderResponse;
import com.wyc.internalCommon.result.ApiResult;
import com.wyc.serviceDriverUser.dto.DriverCarBindingRelationship;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 司机绑定车辆信息表 服务类
 * </p>
 *
 * @author li
 * @since 2023-03-26
 */
public interface DriverCarBindingRelationshipService extends IService<DriverCarBindingRelationship> {

    /**
     * 司机绑定车辆
     * @param driverCarBindingRelationship
     * @return
     */
    ApiResult DriverBindCar(DriverCarBindingRelationship driverCarBindingRelationship);

    /**
     * 司机解绑车辆
     * @param driverCarBindingRelationship
     * @return
     */
    ApiResult DriverUnbindCar(DriverCarBindingRelationship driverCarBindingRelationship);

    /**
     * 根据车辆id查询可接单的司机信息
     * @param carId
     * @return
     */
    ApiResult<DriverOrderResponse> getAvailableDriverByCarId(Long carId);
}
